{% extends "_layout_site_default.html" %}

{% block head_title %}Edit user{% endblock %}

{% block body %}

<div class="container-fluid">
	<div class="row">
        
        <div class="col-md-2">
            
            {{ side_navpanel('home') }}
            
        </div>
        
        <div class="col-md-10">
            
            <form class="form-horizontal" method="POST">
                <input type="hidden" id="user_key" name="user_key" value="{{user.key.urlsafe()}}" />
                <div class="form-group">
                    <div class="col-sm-2 text-right"><strong>Email</strong></div>
                    <div class="col-sm-4">{{user.email}}</div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 text-right"><strong>First name</strong></div>
                    <div class="col-sm-4">{{user.first_name}}</div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 text-right"><strong>Last name</strong></div>
                    <div class="col-sm-4">{{user.last_name}}</div>
                </div>
                
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" name="submit_type" value="delete_user" class="btn btn-default">Delete user</button>
                    </div>
                </div>
            </form>
            
        </div>

	</div>
</div>

{% endblock %}